Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactors vendor global scope procs #4918

Merged
merged 4 commits into from
Nov 16, 2023
Merged

Conversation

Birdtalon
Copy link
Contributor

@Birdtalon Birdtalon commented Nov 13, 2023

About the pull request

Refactors awful vendor global scope procs.

Really this entire file needs looking at why do vending machines need 1300 lines. This is a start at least.

Also removed a bunch of commented out code at the bottom.

Explain why it's good for the game

Testing Photographs and Procedure

Screenshots & Videos

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

🆑
code: Refactors vending machine global scope procs
/:cl:

@github-actions github-actions bot added the Code Improvement Make the code longer label Nov 13, 2023
Copy link
Member

@harryob harryob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this

code/game/machinery/vending/cm_vending.dm Outdated Show resolved Hide resolved
@harryob harryob marked this pull request as draft November 16, 2023 19:20
@Birdtalon Birdtalon marked this pull request as ready for review November 16, 2023 21:15
@@ -443,7 +443,7 @@ GLOBAL_LIST_EMPTY(vending_products)
//------------TGUI PROCS---------------

/obj/structure/machinery/cm_vending/ui_data(mob/user)
return vendor_user_ui_data(src, user)
return vendor_user_ui_data(user)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wait this proc should just return what vendor_user_ui_data and we should get rid of that proc if it's not used anywhere else

@harryob harryob added this pull request to the merge queue Nov 16, 2023
Merged via the queue into cmss13-devs:master with commit b7dbcf9 Nov 16, 2023
26 checks passed
cm13-github added a commit that referenced this pull request Nov 16, 2023
@Birdtalon Birdtalon deleted the vendors branch December 21, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Make the code longer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants